package com.happyrecyclingstation.functioncalling;

import com.happyrecyclingstation.dto.AIResumeQuery;
import com.happyrecyclingstation.service.ResumeService;
import com.happyrecyclingstation.vo.ResumeVO;
import jakarta.servlet.http.HttpServletRequest;
import org.springframework.ai.tool.annotation.Tool;
import org.springframework.ai.tool.annotation.ToolParam;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public class ResumeTool {
	@Autowired
	private ResumeService resumeService;

	@Tool(description = "根据条件查询简历")
	public List<ResumeVO> getResume(@ToolParam(required = false, description = "简历查询条件") AIResumeQuery query) {
		return resumeService.getAiResume(query);
	}
}
